<script setup lang="ts">
import HelloWorld from './components/HelloWorld.vue'
import TheWelcome from './components/TheWelcome.vue'
import Person from './components/Person.vue';
import watchTest from './components/watchTest.vue'
import LoginTest from './components/LoginTest.vue'
import WatchEffectDemo from './components/watchEffectDemo.vue'
import inputDemo from './components/inputDemo.vue'
import axiosDemo from './components/axiosDemo.vue'
import {RouterView} from 'vue-router';
import Count from '@/components/pinia/Count.vue'
import TalkAbout from '@/components/pinia/TalkAbout.vue'
</script>

<template>
  <div>
    <h2>路由测试</h2>
    <div class="navigate"> 导航区</div>
    <RouterLink to="/a" active-class="dianliang">首页A</RouterLink>
    <RouterLink to="/b" active-class="dianliang">活动B</RouterLink>
<!--    to的写法二-->
    <RouterLink :to="{path:'/c'}" active-class="dianliang">简介C</RouterLink> <br>
    <div>展示区</div>
    <div><RouterView></RouterView></div>
  </div>
  <!-- <header>
    <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />

    <div class="wrapper">
      <HelloWorld msg="You did it!" />
    </div>
  </header>

  <main>
    <TheWelcome />
  </main> -->
  <Person/>
  <LoginTest/>
  <watchTest/>
  <WatchEffectDemo/>
  <inputDemo/>
  <br>
  <axiosDemo/>

  <Count/>
  <TalkAbout/>

</template>

<style scoped>
header {
  line-height: 1.5;
}

.logo {
  display: block;
  margin: 0 auto 2rem;
}
.dianliang{
  color: brown;
}
@media (min-width: 1024px) {
  header {
    display: flex;
    place-items: center;
    padding-right: calc(var(--section-gap) / 2);
  }

  .logo {
    margin: 0 2rem 0 0;
  }

  header .wrapper {
    display: flex;
    place-items: flex-start;
    flex-wrap: wrap;
  }
}
</style>
